namespace Collaboris.Saf.Actions.Wss.Tests.Generated
{
    using System.IO;

    using Engine.Report;

    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Saf.Tests;

    using Wss.ContentMigration;

    using SharePoint.Wss.ContentMigration;

    /// <summary>
    /// This test was originally generated but has now been tested and verfiied by MJ
    /// </summary>
    [TestClass]
    public class ImportWebTest
    {

        [TestMethod]
        public void ImportWeb_Test()
        {
            WSSTestAssistant<ImportWeb, WebImportSettings> importweb =
                    new WSSTestAssistant<ImportWeb, WebImportSettings>(TestEnvironment.PublishingSite, 
                        "ImportWebTestWeb", "BLANKINTERNET#0");

            using (importweb)
            {
                importweb.FirstEntity.ImportSettings.BaseFileName = "exportweb_content.cmp";
                

                string filename = Path.Combine(
                    importweb.FirstEntity.ImportSettings.FileLocation,
                    importweb.FirstEntity.ImportSettings.BaseFileName);

                // this doesn't get tested in isolation...
                // the ExportList_Test created it
                if (System.IO.File.Exists(filename))
                {
                    MacroReport doReport = importweb.DoMacro();

                    //Assert.IsNotNull(SPListHelper.GetList(importlist.TestWeb, importlist.FirstEntity.ListName));
                }


            }
        }

    }
}
